# Name: GlobalVariables.py #
# 
# Author: Waters #
# Creation Date: 2021.11.17 #
# Version: v0.0.1 #
# 

def CreateGlobalVarialbe():
	global g_szHelloMessage
	global g_szSoftwareName
	global g_lszPackagesNeeded
	global g_szVersionNum
	global g_szFileevers
	global g_szProdvers
	global g_szCompanyName
	global g_szFileDescription
	global g_szFileVersion
	global g_szInternalName
	global g_szLegalCopyright
	global g_szOriginalFilename
	global g_szProductName
	global g_szProductVersion
	global g_szTranslation

	g_szHelloMessage = "Hello, this Waters's project."
	g_szSoftwareName = '标准软件开发模板'
	g_lszPackagesNeeded = ['pyinstaller']
	g_szVersionNum = 'v0.1.8'

	# version information
	temp_lszVersionNum = g_szVersionNum[1:6].split('.')
	temp_lszVersionNum.append('0')
	g_szFileevers = '(%s)' %(', '.join(temp_lszVersionNum))
	g_szProdvers = '(%s)' %(', '.join(temp_lszVersionNum))
	g_szCompanyName = '三水同学工作室'
	g_szFileDescription = '标准软件开发模板'
	g_szFileVersion = g_szVersionNum[1:6]
	g_szInternalName = '标准软件开发模板'
	g_szLegalCopyright = 'GNU GENERAL PUBLIC LICENSE Version 3'
	g_szOriginalFilename = 'Standard-Software-Frame'
	g_szProductName = 'Standard-Template'
	g_szProductVersion = g_szVersionNum[1:6]
	g_szTranslation = '[2052, 1200]'

	return 0

def GetAllCustomGlobalVariables():
	CreateGlobalVarialbe()
	global_variable = globals()
	dicCustomGlobalVariables = {}
	for key,value in global_variable.items():
		if not (key.startswith('_') \
			or key in ('In','Out','get_ipython','exit','quit','GetAllCustomGlobalVariables', 'CreateGlobalVarialbe') \
			or type(value).__name__ == 'module'):
			dicCustomGlobalVariables[key] = value
		else:
			pass
	return dicCustomGlobalVariables

if __name__ == '__main__':
	print(GetAllCustomGlobalVariables())